package com.whj.serviceprice.remote;

import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.request.ForecastPriceDTO;
import com.whj.internalcommon.response.DirectionResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/7 - 01 - 07 - 13:19 
 * @Description: com.whj.serviceprice.remote
 */

@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.GET,value = "/direction/driving")
    public ResponseResult<DirectionResponse> driving(@RequestBody ForecastPriceDTO forecastPriceDTO);
}
